In fact, many of the methods are very simple, such as
$_files[' userfile ' [' type '] is judged before the file is uploaded.
There is also a getimagesize--get the image size and getimagesize return and the parameters are as follows.
Returns
Ec (2); in fact, many methods are also very simple, for example, $ _ FILES [userfile] [type] is to judge before the file is uploaded. there is also a getimagesize -- get the image size while getimagesize returns and parameters are as follows.
Copy CodeThe code is as follows:
$filename = ' path + actual filename ';Types of filesHeader (' content-type:application/pdf ');Download the displayed nameHeader (' content-disposition:attachment; filename= ' file name when saving. pdf
// Supplement. AIFF audio file Windows Media Player
.!!! NetAnts temporary file NetAnts
. Ani animated mouse
. ARJ compressed File ARJ
. AVI Movie File Windows Media Player
. AWD fax document
. Bak backup file
. Bas BASIC language basic
. Bat DOS
Copy Code code as follows:
$filename = ' path + actual filename ';
Type of File
Header (' content-type:application/pdf ');
Download the displayed name
Header (' content-disposition:attachment filename= file name when saved; PDF ');
I believe that many people will encounter this situation when implementing the file download function. The intention is to click the download connection and prompt to save the dialog box. this is often counterproductive, for example, a file such as
If you take advantage of the stitching detail provided inside the OPENCV.Input parameters:Stitching_detail--save_graph A.dot 1.png 2.pngWhere the contents of the A.dot file are as follows:Graph matches_graph{"1.png"--"2.png" [label= "nm=26, ni=19, c=
getimagesize-Get image size
Description
Array getimagesize (string $filename [, Array & $imageinfo])
The getimagesize () function will determine any GIF,JPG,PNG,SWF,SWC,PSD,TIFF,BMP,IFF,JP2,JPX,JB2,JPC,XBM or WBMP The size of the image file and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.